import request from '@/utils/request'

// 查询固件升级日志列表
export function listFirmwareLog(query) {
  return request({
    url: '/firmware/firmwareUpgradelog/list',
    method: 'get',
    params: query
  })
}

// 查询固件升级日志详细
export function getFirmwareLog(id) {
  return request({
    url: '/firmware/firmwareUpgradelog/' + id,
    method: 'get'
  })
}

// 新增固件升级日志
export function addFirmwareLog(data) {
  return request({
    url: '/firmware/firmwareLog',
    method: 'post',
    data: data
  })
}

// 修改固件升级日志
export function updateFirmwareLog(data) {
  return request({
    url: '/firmware/firmwareLog',
    method: 'put',
    data: data
  })
}

// 删除固件升级日志
export function delFirmwareLog(id) {
  return request({
    url: '/firmware/firmwareUpgradelog/' + id,
    method: 'delete'
  })
}
